<template>
  <router-view />
</template>

<script setup>
  import { useStore } from 'vuex'
  import { generateNewStyle, writeNewStyle } from '@/utils/theme'

  const store = useStore()
  // 加载element默认色值
  generateNewStyle(store.getters.mainColor).then((newStyleText) => {
    writeNewStyle(newStyleText)
  })
</script>

<style></style>
